import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import TopComponent from './components/TopComponent.vue'
import NavComponent from './components/NavComponent.vue'

Vue.component('TopComponent', TopComponent);
Vue.component('NavComponent', NavComponent);

Vue.config.productionTip = false;

Vue.mixin({
   methods: {
       changeRoute(newRoute, routeQuery = {}) {
           router.push({path: newRoute, query: routeQuery});
       },
       backRoute() {
           router.go(-1);
       }
   }
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
